<template>
	<view v-if="isSys"> </view>
</template>

<script lang="ts" setup>
import { ref, watch, onBeforeMount } from 'vue';

const props = defineProps({
	isSys: {
		type: Boolean,
		default: true,
	},
});

function toast(title: string) {
	uni.showToast({
		title: title,
	});
}

async function actionSheet(title: string) {
	// return new Promise(function(resolve, reject) {
	uni.showActionSheet({
		itemList: [1, 2.3],
		success: function (res) {
			// resolve(res.tapIndex)
		},
	});
	// })
}

defineExpose({
	toast: toast,
	actionSheet: actionSheet,
});
</script>

<style></style>
